import React, { Component } from 'react';
import Form from './login/form'

class login extends Component {
    constructor(){
        super();
        this.state={
            isLogin:false
        }
    }
    handleclick(){
        this.setState({
            isLogin:true
        })
    }
    render() {
        return (
            <div>
                {
                    this.state.isLogin?<Form></Form>: <button onClick={()=>this.handleclick()}>去登录</button>
                }
            </div>
        );
    }
}

export default login;